RPCBUILT = incognito_proto.h incognito_proto.C 
 
SUFFIXES = .x .C .h
.x.h:
	-$(RPCC) -h $< || rm -f $@
.x.C:
	-$(RPCC) -c $< || rm -f $@
$(RPCC):
	@:

incognito_proto.h: incognito_proto.x
incognito_proto.C: incognito_proto.x
incognito.o: incognito_proto.h

$(DEP_FILES): incognito_proto.h

bin_PROGRAMS = incognito blogpublisher test_store
incognito_SOURCES = test1.C
incognito_LDADD = ../chord/libchord.a ../utils/libutil.a ../svc/libsvc.la $(LDADD)

blogpublisher_SOURCES = blogpublisher.C
blogpublisher_LDADD =libincognito.a ../chord/libchord.a ../dhash/libdhashclient.a  ../utils/libutil.a ../svc/libsvc.la  $(LDADD) 

test_store_SOURCES = test_store.C
test_store_LDADD = libincognito.a ../chord/libchord.a ../dhash/libdhashclient.a ../utils/libutil.a ../svc/libsvc.la $(LDADD)

noinst_HEADERS = incognito.h incognito_proto.x
noinst_LIBRARIES = libincognito.a
libincognito_a_SOURCES = incognito.C incognito_proto.C dh.C keymngr.C encmngr.C


##$(PROGRAMS): $(LDEPS)


dist-hook:
	cd $(distdir) && rm -f $(RPCBUILT)

.PHONY: rpcclean
rpcclean:
	rm -f $(RPCBUILT)

CLEANFILES = core *.core *~ *.rpo $(RPCBUILT)
MAINTAINERCLEANFILES = Makefile.in
